home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinMessenger 3.xpl < prev    next >
Text File  |  2002-01-10  |  2KB  |  83 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Internet\Instant Messaging\Windows Messenger\System"
  5. "NAME"="General Settings"
  6. "VERSION"="1.13"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable promotional offerings/advertisement"
  9. "TEXT 2"="Allow connections to Exchange servers and MSN Messenger"
  10. "TEXT 3"="Enable automatic updates"
  11. "DESCRIPTION 1"="Some options for Exchange Messenger/Windows Messenger."
  12. "DESCRIPTION 2"="NOTE: This first setting only works if the second option is also activated, which means that you can only connect to an Exchange Server computer."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="check http://support.microsoft.com/support/kb/articles/Q260/2/21.ASP"
  17. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  18.  
  19.  
  20.  sP="HKLM\SOFTWARE\Microsoft\MessengerService\"
  21. sV1="HKLM\SOFTWARE\Microsoft\MessengerService\Policies\DisableCrossPromo" 
  22. sV2="HKLM\SOFTWARE\Microsoft\MessengerService\Policies\ExchangeCONN" 
  23. sV3="HKLM\SOFTWARE\Microsoft\MessengerService\Policies\DisableUpdates" 
  24.  
  25.  
  26. Sub Plugin_Initialize 
  27.  if RegPathExists(sP) then
  28.     i=RegReadValue(sV1)
  29.     if i<>"80" then SetUiElement 1,true
  30.  
  31.     i=RegReadValue(sV2)
  32.     if i<>"80" then SetUiElement 2,true 
  33.  
  34.     i=RegReadValue(sV3)
  35.     if i<>"80" then SetUiElement 3,true 
  36.  
  37.  else
  38.     Call Disable()
  39.  end if
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_CheckData(ElementIndex)
  44. End Sub
  45.  
  46.  
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  b=GetUIElement(1)
  50.  if b=true then
  51.     if RegValueExists(sV1) then RegDeleteValue(sV1)
  52.  else
  53.     Call RegWriteValue(sV1,"80",3)
  54.  end if
  55.  
  56.  
  57.  b=GetUIElement(2)
  58.  if b=true then
  59.     if RegValueExists(sV2) then RegDeleteValue(sV2)
  60.  else
  61.     Call RegWriteValue(sV2,"80",3)
  62.  end if
  63.  
  64.  
  65.  b=GetUIElement(3)
  66.  if b=true then
  67.     if RegValueExists(sV3) then RegDeleteValue(sV3)
  68.  else
  69.     Call RegWriteValue(sV3,"80",3)
  70.  end if
  71.  
  72.  
  73.  Call Logoff()
  74.  
  75. End Sub
  76.  
  77.  
  78. Sub Plugin_Terminate 
  79. End Sub
  80.  
  81.  
  82.  
  83.